﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WF.DAL;

namespace WF.Model
{
    public class OperateEntity : EntityBase<Operate>
    {
        #region 构造函数

        public OperateEntity() : base() { }
        public OperateEntity(Operate Operate) : base(Operate) { }
        #endregion

        #region 实现基类abstract属性

        public override string ID
        {
            get { return DbEntity.OperateID; }
            set { DbEntity.OperateID = value; this.SendPropertyChanged("OperateID"); }
        }

        public override string DisplayName
        {
            get { return DbEntity.OperateID; }
        }

        #endregion

        #region Public 属性

        public string OperateID
        {
            get
            {
                return DbEntity.OperateID;
            }
            set
            {
                DbEntity.OperateID = value; this.SendPropertyChanged("OperateID");
            }
        }

        public string OperateNo
        {
            get
            {
                return DbEntity.OperateNo;
            }
            set
            {
                DbEntity.OperateNo = value; this.SendPropertyChanged("OperateNo");
            }
        }

        public string ModelName
        {
            get
            {
                return DbEntity.ModelName;
            }
            set
            {
                DbEntity.ModelName = value; this.SendPropertyChanged("ModelName");
            }
        }

        public string OperateName
        {
            get
            {
                return DbEntity.OperateName;
            }
            set
            {
                DbEntity.OperateName = value; this.SendPropertyChanged("OperateName");
            }
        }

        public string OperateType
        {
            get
            {
                return DbEntity.OperateType;
            }
            set
            {
                DbEntity.OperateType = value; this.SendPropertyChanged("OperateType");
            }
        }
        public short DeptRelate
        {
            get
            {
                return DbEntity.DeptRelate;
            }
            set
            {
                DbEntity.DeptRelate = value; this.SendPropertyChanged("DeptRelate");
            }
        }

        public short FlagDeleted
        {
            get
            {
                return DbEntity.FlagDeleted;
            }
            set
            {
                DbEntity.FlagDeleted = value; this.SendPropertyChanged("FlagDeleted");
            }
        }
        #endregion
    }
}
